﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Kinect;

namespace KinectMenagerNamespace.KinectGestureParts
{
    public class LeftHandBelowShoulder : KinectGesturePart
    {
        public event GesturePartHandler OnGesturePartFail;
        public event GesturePartHandler OnGesturePartSucces;

        public GestureState Update(Skeleton skeleton)
        {
            if (skeleton.Joints[JointType.HandLeft].Position.Y < skeleton.Joints[JointType.ShoulderLeft].Position.Y)
            {
                return GestureState.Succes;
            }
            else
            {
                return GestureState.InProgress;
            }
        }
    }
}
